package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_good_img")
public class ShopGoodImgEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    @Column(comment = "商品id")
    private Long goodId;

    /**
     * 是否主图：1是；0否
     */
    @Column(comment = "是否主图：1是；0否")
    private Integer masterImg;

    /**
     * 图片url
     */
    @Column(comment = "图片url")
    private String url;

    /**
     * 类型：1-图片；2-视频
     */
    @Column(comment = "类型：1-图片；2-视频")
    private String type;


}
